<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'reparaciondetalle-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

                
                
        
                
       <?php echo $form->errorSummary($model); ?>     

   <?php  
//                echo $_GET['reparacion_id'] ;
//                        echo 'aca'.$model->reparacion_id;
                        ?>

	<div class="row">
            
            
               <?php //if($model->isNewRecord){ ?>
               	<?php echo $form->labelEx($model,'reparacion_id'); ?>
                <?php echo CHtml::textField("reparacion_id",$_GET['reparacion_id'],array('readonly'=>true)); ?>
				<?php echo $form->error($model,'reparacion_id'); ?>
          <?php //  }else{ ?>
                     <?php //echo $form->labelEx($model,'reparacion_id'); ?>
                    <?php //echo $form->textField($model,'reparacion_id'); ?>
                    <?php //echo $form->error($model,'reparacion_id'); ?>

                 <?php   //} ?>
		
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'insumo'); ?>
		<?php echo $form->textField($model,'insumo',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'insumo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cantidad'); ?>
		<?php echo $form->textField($model,'cantidad'); ?>
		<?php echo $form->error($model,'cantidad'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'servicio'); ?>
		<?php echo $form->textField($model,'servicio',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'servicio'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Crear' : 'Guardar' , array('class'=>'btn btn-small','id'=>'carga_form')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->